SERVER=xenon.cs.luc.edu:~/public_html/cs271/lectures

all: images slides article

article:
	pdflatex sorting.article
	#bibtex sorting.article
	#pdflatex sorting.article
	pdflatex sorting.article

slides:
	pdflatex sorting.beamer
	#bibtex sorting.beamer
	#pdflatex sorting.beamer
	pdflatex sorting.beamer

images:
	dot -Tpdf decisiontree.dot > decisiontree.pdf


publish: all
	scp sorting.beamer.pdf ${SERVER}/lec13-sorting.beamer.pdf
	scp sorting.article.pdf ${SERVER}/lec13-sorting.article.pdf

clean:
	-rm *.aux *.log *.nav *.out *.pdf *.snm *.toc *.vrb *.ps *.dvi *.bbl *.blg
	-rm *~